/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *    2011 year
 *    Author: Michael Khromov aka MikeDM (Mike D'Morto)
 *    E-Mail: mikedmorto@gmail.com
 */

#include <Wt/WApplication>
#include <stdio.h>
#include <string>

#define L_ZERO 0
#define L_ERROR 1
#define L_INFO 2
#define L_DEBUG 3


class MLog{
public:
    MLog(Wt::WApplication* app);
    void putlog(int level, const std::string& name, const std::string& message);
    void setLoglevel(int level);
private:
    Wt::WApplication* app;
    /* уровни протоколирования
      0 пустой вывод. так называемый тихий режим работы. глухо как в танке. нерекомендуется использовать.
      1 вывод только информации об ошибках
      2 будем показывать дополнительную информацию
      3 отладочный режим.
    */
    int loglevel;


};
